package org.clockworkmages.games.anno1186.scripting.tools;

public class PlotScriptBuilder
		extends ScriptBuilder {

	public PlotScriptBuilder() {
		super(new StringBuffer("plot"));
	}

	public PlotScriptBuilder(StringBuffer sb, BuilderWrapper parent) {
		super(sb, parent);
		sb.append("plot");
	}

	public ScriptBuilder is(String plotId) {
		sb.append(".is('" + plotId + "')");
		return this;
	}

	public ScriptBuilder get(String plotId) {
		sb.append(".get('" + plotId + "')");
		return this;
	}

	public ScriptBuilder set(String plotId) {
		sb.append(".set('" + plotId + "')");
		return this;
	}

	public ScriptBuilder set(String plotId, String value) {
		sb.append(".set('" + plotId + "','" + value + "')");
		return this;
	}
}
